import request from '@/utils/request.js'

const wt_PersionApi = {
  getViewTaskByInstid: '/flow/getViewTaskByInstid',
  querySonProcessByInstid: '/flow/querySonProcessByInstid',
}

/**
 * 根据父流程实例id查询子流程记录
 * @param pageInfo
 * @return
 */
 export function querySonProcessByInstid(processinstanceid) {
  return request({
    url: wt_PersionApi.querySonProcessByInstid,
    method: 'post',
    params: {
      processinstanceid
    }
  })
}

/**
 * 根据流程实例id查询预览页面taskid
 * @param pageInfo
 * @return
 */
 export function getViewTaskByInstid(processinstanceid) {
  return request({
    url: wt_PersionApi.getViewTaskByInstid,
    method: 'post',
    params: {
      processinstanceid
    }
  })
}